<link rel="stylesheet" href="../core/resource/weui/weui.css">
<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">我的订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div style="margin-top:58px"></div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':pagedata.params.status == undefind}"  ng-click="access('list')">全部</a>
        <a ng-class="{'external active':pagedata.params.status == 0}"  ng-click="access('list','status=0')">待支付</a>
        <a ng-class="{'external active':pagedata.params.status == 1}"  ng-click="access('list','status=1')">待发货</a>
        <a ng-class="{'external active':pagedata.params.status == 2}"  ng-click="access('list','status=2')">待收货</a>
        <a ng-class="{'external active':pagedata.params.status == 3}"  ng-click="access('list','status=3')">已完成</a>
    </div>
	<div class='fui-content navbar order-list'>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
		<a class="fui-list external" >
			<div class='fui-list-inner'>
				 <div class="subtitle"> 订单号:
				 <span class="status">{{item.ordersn}}</span>
				 </div>
			</div>
			<div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;"> {{pagedata.status[item.status]}}</div>
			<div class="angle"></div>
		</a>
        <div class="fui-list goods-list">
                <a class="fui-list-inner" href="{{item.linkurl}}" data-nocache="true">
                    <i class="icon jinyunicon icon-tianmaohuodaofukuan" style="float:left"></i><div class="ordersn">挪车卡申请</div>
					<div class="title" style="font-size:0.65rem;color:red">￥ {{item.price}}.00</div>
                </a>
				<a class="jump" data-nocache="true">
					<div class="title" style="font-size:0.5rem;text-align: right;">{{item.createtime}}</div>
					<div class="btn btn-sm btn-default-o order-delete jy-btn-sm" style="font-size:0.5rem;margin-left:0.5rem;padding:0.2rem;float: right;height:1.2rem;line-height:0.76rem" href="javascript:" ng-click="post({},'del','id='+item.id)">删除订单</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" style="font-size:0.5rem;margin-left:0.5rem;padding:0.2rem;float: right;height:1.2rem;line-height:0.76rem" href="javascript:" ng-click="post({},'pay','id='+item.id)">支付订单</div>
					<div ng-show="item.status == 2" class="btn btn-sm btn-danger-o order-finish" style="font-size:0.5rem;margin-left:0.5rem;padding:0.2rem;float: right;height:1.2rem;line-height:0.76rem" href="javascript:" ng-click="post({},'receive','id='+item.id)">确认收货</div>
				</a>
         </div>
	</div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div class='order-list-page' ng-if="pagedata.op == 'add'">
<div class="fui-header">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">申请挪车卡</div>
		<div class="fui-header-right"></div>
</div>
<div class="weui_cells weui_cells_form" style="margin-top:58px">
	<div class="weui_cell weui_vcode">
        <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
		<div class="weui_cell_bd weui_cell_primary">
        <input class="weui_input" type="text" ng-model="pagedata.item.ship_name" placeholder="请输入您的真实姓名">
		</div>
    </div>
    <div class="weui_cell weui_vcode">
		<div class="weui_cell_hd"><label class="weui_label">手机</label></div>
		<div class="weui_cell_bd weui_cell_primary">
		<input class="weui_input" type="number" ng-model="pagedata.item.ship_mobile" pattern="[0-9]*" placeholder="请输入号码">
		</div>
	</div>
	 <div class="weui_cell weui_vcode">
		<div class="weui_cell_hd"><label class="weui_label">收货地址</label></div>
		<div class="weui_cell_bd weui_cell_primary">
		<input class="weui_input" type="text" ng-model="pagedata.item.ship_address" placeholder="请输入您的收货地址">
		</div>
	</div>
</div>
<div class="weui_btn_area">
     <a class="weui_btn weui_btn_primary" href="javascript:" ng-click="post(pagedata.item,'add')">提交</a>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>